package com.dty.dtycompute.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tdata_rt_req
 */
@Data
public class TdataRtReq implements Serializable {

    private String id;
    /**
     * 
     */
    private String meterId;

    /**
     * 
     */
    private String departId;

    /**
     * 
     */
    private String measureId;

    /**
     * 
     */
    private String energyCategoryId;

    /**
     * 
     */
    private String energyItemId;

    /**
     * 
     */
    private String meterNo;

    /**
     * 
     */
    private String dt;

    /**
     * 
     */
    private BigDecimal zong;

    /**
     * 
     */
    private BigDecimal jian;

    /**
     * 
     */
    private BigDecimal feng;

    /**
     * 
     */
    private BigDecimal ping;

    /**
     * 
     */
    private BigDecimal gu;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TdataRtReq other = (TdataRtReq) that;
        return (this.getMeterId() == null ? other.getMeterId() == null : this.getMeterId().equals(other.getMeterId()))
            && (this.getDepartId() == null ? other.getDepartId() == null : this.getDepartId().equals(other.getDepartId()))
            && (this.getMeasureId() == null ? other.getMeasureId() == null : this.getMeasureId().equals(other.getMeasureId()))
            && (this.getEnergyCategoryId() == null ? other.getEnergyCategoryId() == null : this.getEnergyCategoryId().equals(other.getEnergyCategoryId()))
            && (this.getEnergyItemId() == null ? other.getEnergyItemId() == null : this.getEnergyItemId().equals(other.getEnergyItemId()))
            && (this.getMeterNo() == null ? other.getMeterNo() == null : this.getMeterNo().equals(other.getMeterNo()))
            && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt()))
            && (this.getZong() == null ? other.getZong() == null : this.getZong().equals(other.getZong()))
            && (this.getJian() == null ? other.getJian() == null : this.getJian().equals(other.getJian()))
            && (this.getFeng() == null ? other.getFeng() == null : this.getFeng().equals(other.getFeng()))
            && (this.getPing() == null ? other.getPing() == null : this.getPing().equals(other.getPing()))
            && (this.getGu() == null ? other.getGu() == null : this.getGu().equals(other.getGu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMeterId() == null) ? 0 : getMeterId().hashCode());
        result = prime * result + ((getDepartId() == null) ? 0 : getDepartId().hashCode());
        result = prime * result + ((getMeasureId() == null) ? 0 : getMeasureId().hashCode());
        result = prime * result + ((getEnergyCategoryId() == null) ? 0 : getEnergyCategoryId().hashCode());
        result = prime * result + ((getEnergyItemId() == null) ? 0 : getEnergyItemId().hashCode());
        result = prime * result + ((getMeterNo() == null) ? 0 : getMeterNo().hashCode());
        result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode());
        result = prime * result + ((getZong() == null) ? 0 : getZong().hashCode());
        result = prime * result + ((getJian() == null) ? 0 : getJian().hashCode());
        result = prime * result + ((getFeng() == null) ? 0 : getFeng().hashCode());
        result = prime * result + ((getPing() == null) ? 0 : getPing().hashCode());
        result = prime * result + ((getGu() == null) ? 0 : getGu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", meterid=").append(meterId);
        sb.append(", departid=").append(departId);
        sb.append(", measureid=").append(measureId);
        sb.append(", energycategoryid=").append(energyCategoryId);
        sb.append(", energyitemid=").append(energyItemId);
        sb.append(", meterno=").append(meterNo);
        sb.append(", dt=").append(dt);
        sb.append(", zong=").append(zong);
        sb.append(", jian=").append(jian);
        sb.append(", feng=").append(feng);
        sb.append(", ping=").append(ping);
        sb.append(", gu=").append(gu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}